package abstract_factory;

public class ProductFactory {
    public AbstractFactory getFactory(String factoryName){
        if(factoryName.equals("AutomobileFactory")){
            return new AutomobileFactory();
        }else if (factoryName.equals("BreadFactory")){
            return new BreadFactory();
        }
        return null;
    }
}
